<?php

/**
 * Library class to use files
 * 
 * @copyright inovia
 *
 */
class libFile{
    
    public function __construct(){
        
    }
    
    /**
     * Writes a string at the end of a file
     *
     * @param string $file
     * @param string $string
     */
    public function writeInFile($file,$string){
    		try {
		    		$file = new File($file,'a',null);
		    		$file->writeAll($string);
		    } catch(Exception $e) {
		    		throw new Exception($e->getMessage());
		    }
    }
}

?>
